package com.blog.admin.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;

/**
 * <p>
 * oss配置类
 * </p>
 *
 * @author Valerie
 * @date 2023/3/13
 **/
@ConfigurationProperties("upload.oss")
@Data
@RefreshScope
public class OssConfiguration {

    /** oss 域名*/
    private String url;

    /** Endpoint */
    private String endpoint;

    private String accessKeyId;

    /**
     *accessKeySecret
     */
    private String accessKeySecret;

    /**
     * Bucket名称
     */
    private String bucketName;

    /**
     * cdn加速域名
     */
    private String cdnPath;
}
